<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
    
    let a = 1
    console.log(a)

    for(let i = 0; i < 10; i++) {
        console.log(i)
    }

    //数组的解构
    let b= [1,2,3,4,5]
    let [e,f,g,h] = b
    console.log(e,f,g,h)

    let c =  [[2,3], [4,5]]
    let [[o,p],[q,w]] = c
    console.log(o,p,q,w)


    let stu = {
        name:"halo",
        age:41,
    }

    //对象的解构
    let {name,age} = stu
    console.log(name,age)
    let stu2 = {
        name:name,
        age:age,
    }
    console.log(stu2)
    
    </script>
</body>
</html>